Skip to content

fix(make): make release target portable and consistently signed#24

Merged
aanogueira merged 1 commit into
mainfrom
andre.nogueira/portable-release-target
May 26, 2026
Merged

fix(make): make release target portable and consistently signed#24
aanogueira merged 1 commit into
mainfrom
andre.nogueira/portable-release-target

Conversation

@aanogueira
Copy link
Copy Markdown
Contributor

Summary

  • release: target switched from BSD-style sed -i '' to perl -i -pe for the two version-bump substitutions. The old form fails on GNU sed (Linux, or macOS with Nix/coreutils in PATH) because GNU -i treats '' as an optional suffix and then tries to read the expression as a filename.
  • Version-bump commit now uses --signoff --gpg-sign, matching the already-signed git tag -s on the next line and the project's commit convention.

Test plan

  • perl -i -pe 's/^version = ".*"/version = "1.2.0"/' against a copy of Cargo.toml produces the expected rewrite
  • make release VERSION=<next> end-to-end on the next real release

🤖 Generated with Claude Code

The `release:` target used BSD-style `sed -i ''` for in-place edits,
which fails on GNU sed (where `-i` takes an optional suffix and `''`
gets consumed as that suffix, leaving the expression treated as a
filename). Switched both substitutions to `perl -i -pe`, which behaves
identically on macOS and Linux with no temp file.

The version-bump commit was also being created without `--signoff` or
`--gpg-sign`, even though the matching tag is signed. Aligned the
commit invocation with the project's signing convention.

Signed-off-by: Andre Nogueira <aanogueira@protonmail.com>
@aanogueira aanogueira merged commit 6a6e18f into main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant